package org.xs.web.http.velocity;

import java.util.Map;

public class LayoutContext extends ChainedContext{
	private String render;
	
	public LayoutContext(Map<Object, Object> velocityCore,String render) {
		super(velocityCore);
		this.render = render;
		this.velocityCore = velocityCore;
	}
	
	@Override
	public Object internalGet(String key ){
		if(key != null && key.equals("layout")){
			return render;
		}
		return super.internalGet(key);
	}

}
